import { emit } from '../../services/socketio'

export const get_list_all = () => {
    emit({ type: 'get_list_all', data: 'renyuan_files' })
}

export const filter_file = (state, type, value) => {
    return state.filter(m => m[type] === value)[0]
}